package com.mgs.product.tagger.controller.util
{
	import com.mgs.product.tagger.model.Classifiable;
	import com.mgs.product.tagger.model.Segment;

	public class SegmentFilter
	{
		private var segment:Segment;
		
		public function SegmentFilter(segment:Segment)
		{
			this.segment = segment;
		}
		
		public function filterFunction(item:*, index:int, vector:Vector.<Classifiable>):Boolean
		{
			return segment.taggedElements.indexOf(item) >= 0;
		}
		
	}
}